<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <title><?php echo $template['title'] ?></title>
    <meta name="keywords" content="后台界面" />
    <meta name="description" content="后台界面" />
    <link rel="stylesheet" type="text/css" href="style/public.css" />
    <script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
    <div id="top">
        <div class="logo">
管理中心
        </div>
        <ul class="nav">
            <li><a href="http://www.sifangku.com" target="_blank">私房库</a></li>
            <li><a href="http://www.sifangku.com" target="_blank">私房库</a></li>
        </ul>
        <div class="login_info">
            <a href="#" style="color:#fff;">网站首页</a>&nbsp;|&nbsp;
            管理员： admin <a href="#">[注销]</a>
        </div>
    </div>
    <div id="sidebar">
        <ul>
            <li>
                <div class="small_title">系统</div>
                <ul class="child">
                    <li><a class="current" href="#">系统信息</a></li>
                    <li><a href="#">管理员</a></li>
                    <li><a href="#">添加管理员</a></li>
                    <li><a href="#">站点设置</a></li>
                </ul>
            </li>
            <li><!--  class="current" -->
                <div class="small_title">内容管理</div>
                <ul class="child">
                    <li>
                        <a <?php if(basename($_SERVER['SCRIPT_NAME'])=='father_module.php' || basename($_SERVER['SCRIPT_NAME']) == 'father_module_update.php'){echo 'class="current"';}?>  href="father_module.php">父板块列表</a>
                    </li>
                    <li>
                        <a <?php if (basename($_SERVER['SCRIPT_NAME']) == 'father_module_add.php') { echo 'class="current"';}?>  href="father_module_add.php">添加父板块</a>
                    </li>
                    <li>
                        <a <?php if (basename($_SERVER['SCRIPT_NAME']) == 'son_module.php') { echo 'class="current"';}?>  href="son_module.php">子板块列表</a></li>
                    <li>
                        <a <?php if (basename($_SERVER['SCRIPT_NAME']) == 'son_module_add.php') { echo 'class="current"';}?> href="son_module_add.php">添加子板块</a></li>
                    <li><a href="#">帖子管理</a></li>
                </ul>
            </li>
            <li>
                <div class="small_title">用户管理</div>
                <ul class="child">
                    <li><a href="#">用户列表</a></li>
                </ul>
            </li>
        </ul>
    </div>